home *** CD-ROM | disk | FTP | other *** search
- property piClickedLine, psLineText, psText, psMember, pkMySprite, poOwner, pMyID
-
- on new me, xiSprite, xsMember, xoOwner, xMyId
- pkMySprite = xiSprite
- psMember = xsMember
- psLineText = EMPTY
- psText = member(xsMember).text
- poOwner = xoOwner
- piClickedLine = 0
- pMyID = xMyId
- return me
- end
-
- on mouseUpOutSide me
- piClickedLine = 0
- hilite line 10000 of field psMember
- end
-
- on stepFrame me
- if (the stillDown = 1) and (the clickOn = pkMySprite) then
- if (the mouseLine <> piClickedLine) and (the mouseLine > 0) then
- piClickedLine = the mouseLine
- hilite line piClickedLine of field psMember
- vsTheWord = line piClickedLine of field psMember
- if vsTheWord <> EMPTY then
- psLineText = vsTheWord
- end if
- end if
- else
- if (the clickOn = pkMySprite) and (piClickedLine > 0) and (the mouseMember = the member of sprite pkMySprite) then
- piClickedLine = 0
- mNotify(poOwner, #scrollingList, pMyID)
- end if
- end if
- end
-
- on mGetLine me
- return psLineText
- end
-
- on mGetLinePos me
- return piClickedLine
- end
-
- on mSetText me, xsText
- psText = xsText
- end
-
- on mHide me
- sprite(pkMySprite).visible = 0
- end
-
- on mShow me
- sprite(pkMySprite).visible = 1
- end
-